﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForms/SiteWF.master" AutoEventWireup="true" CodeBehind="RoomTypeAddEdit.aspx.cs" Inherits="WaterfrontLodge.WebForms.RoomTypeMgt.RoomTypeAddEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
<%--    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />--%>
<legend>Edit Room Type</legend>
    <table >
        <tr>
            <th>Description</th>
            <td>
                <asp:TextBox ID="txtDescription" runat="server" MaxLength="256" Width="256px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDescroption" runat="server" 
                    ControlToValidate="txtDescription" ErrorMessage="Description is required." 
                    Display="Dynamic" Font-Bold="False" ForeColor="Red" 
                    ToolTip="Description cannot be blank"></asp:RequiredFieldValidator>
    <asp:Label ID="lblErrorMsg" runat="server" ForeColor="Red"></asp:Label>

            </td>
        </tr>
        
        <tr>
            <th>Room Size</th>
            <td>
                <asp:TextBox ID="txtRoomSize" runat="server" MaxLength="256" Width="256px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvRoomSize" runat="server" 
                    ControlToValidate="txtRoomSize" ErrorMessage="Room Size is required." 
                    Display="Dynamic" Font-Bold="False" ForeColor="Red" 
                    ToolTip="Roomsize cannot be blank"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th>Max Occupant</th>
            <td>
                <asp:TextBox ID="txtMaxOccupant" runat="server" MaxLength="1">0</asp:TextBox>
                <asp:RegularExpressionValidator ID="revMaxOccupant" runat="server" 
                    ErrorMessage="Please enter valid no. of occupants" 
                    ControlToValidate="txtMaxOccupant" ValidationExpression ="[1-9]+" 
                    ForeColor="Red" ToolTip="Max 9 persons allowed." Display="Dynamic"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th>Standard Price </th>
            <td>
                <asp:TextBox ID="txtStdPrice" runat="server" MaxLength="6">0</asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorPrice" runat="server" 
                    ControlToValidate="txtStdPrice" ErrorMessage="Standard Price is required."
                    Display="Dynamic" Font-Bold="False" ForeColor="Red" 
                    ToolTip="Roomsize cannot be blank"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revStdPrice" runat="server" 
                    ErrorMessage="Please Enter valid Price" ControlToValidate="txtStdPrice" 
                    ValidationExpression="[0-9]+" 
                    ForeColor="Red" ToolTip="Unit of Standard Price must be in cent." Display="Dynamic"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th>Remarks</th>
            <td>
                <asp:TextBox ID="txtRemarks" runat="server" MaxLength="256" 
                    style="margin-left: 0px" TextMode="MultiLine" Height="63px" Width="199px"></asp:TextBox>
            </td>
        </tr>
    </table>

    <asp:Label ID="lblTypeCode" runat="server" Visible="False"></asp:Label>
    
    <br />
    <asp:Button ID="btnNext" runat="server" Text="Next" onclick="btnNext_Click" />
  </fieldset>
</asp:Content>
